<?php
    if(C('LAYOUT_ON')) {
        echo '{__NOLAYOUT__}';
    }
?>
<!DOCTYPE html Public "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>跳转提示</title>
<script src="/Public/admin/js/jquery.min.js"></script>
<script src="/Public/admin/js/layer/layer.js"></script>

<style>
.system-message{margin:20 auto;width:80%}
</style>
</head>
<body>


<div class="system-message">
<?php if(isset($message)) {?>
<script>
layer.msg('<?php echo($message); ?>', {
  icon: 1,
})
</script>
<?php }else{?>
<script>
layer.msg('<?php echo($error); ?>', {
  icon: 2,
})
</script>
<?php }?>

</div>
<script type="text/javascript">

var interval = setInterval(function(){
    var time = <?php echo($waitSecond); ?>;
    if(time <= 0) {
        location.href = '<?php echo($jumpUrl); ?>';
        clearInterval(interval);
    };
}, 1000);


setTimeout(function(){window.location.href = '<?php echo($jumpUrl); ?>';},<?php echo($waitSecond*1000); ?>);
</script>
</body>
</html>